package com.formulas.certification.oauth.gatewayimpl;

import com.formulas.certification.domain.oauth.model.OauthClientDetailsEntity;
import com.formulas.certification.oauth.dao.OauthClientDetailsDAO;
import com.formulas.certification.oauth.entity.OauthClientDetails;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author yiwannuofulasi
 * @date 2023/6/13 17:29
 */
@Mapper
public interface OauthClientDetailsEntityConvertor {

    OauthClientDetailsEntityConvertor INSTANCE = Mappers.getMapper(OauthClientDetailsEntityConvertor.class);

    OauthClientDetails toOauthClientDetails(OauthClientDetailsEntity oauthClientDetailsEntity);

    OauthClientDetailsEntity toOauthClientDetailsEntity(OauthClientDetails oauthClientDetails);

    List<OauthClientDetailsEntity> toOauthClientDetailsEntityList(List<OauthClientDetailsDAO> clientDetails);

}
